package com.zhou.system.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author zxf
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("sys_role")
@ApiModel(value = "SysRole对象", description = "角色信息表")
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色ID", position = 1)
    @JsonProperty(index = 1)
    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;

    @ApiModelProperty(value = "角色名称", position = 2)
    @JsonProperty(index = 2)
    private String roleName;

    @ApiModelProperty(value = "角色权限字符串", position = 3)
    @JsonProperty(index = 3)
    private String roleKey;

    @ApiModelProperty(value = "显示顺序", position = 4)
    @JsonProperty(index = 4)
    private Integer orderNum;

    @ApiModelProperty(value = "数据范围（1：全部数据权限;2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）", position = 5)
    @JsonProperty(index = 5)
    private Integer dataScope;

    @ApiModelProperty(value = "角色状态;（0正常1停用）", position = 6)
    @JsonProperty(index = 6)
    private Integer status;

    @ApiModelProperty(value = "备注", position = 7)
    @JsonProperty(index = 7)
    private String remark;

}
